public class CalculatorForm {
    AbstractCommand command;
    void setCommand(AbstractCommand command){
        this.command=command;
    }
    void compute(int value){
        System.out.println(command.execute(value));
    }
    void undo(){
        System.out.println(command.undo());
    }
}
